import request from '@/utils/request'

// 查询中医疾病列表
export function listDisease(query) {
    return request({
        url: '/medical/disease/list',
        method: 'get',
        params: query
    })
}

// 查询中医疾病详细
export function getDisease(id) {
    return request({
        url: '/medical/disease/' + id,
        method: 'get'
    })
}

// 新增中医疾病
export function addDisease(data) {
    return request({
        url: '/medical/disease',
        method: 'post',
        data: data
    })
}

// 修改中医疾病
export function updateDisease(data) {
    return request({
        url: '/medical/disease',
        method: 'put',
        data: data
    })
}

// 删除中医疾病
export function delDisease(id) {
    return request({
        url: '/medical/disease/' + id,
        method: 'delete'
    })
}


export function diseaseList() {
    return request({
        url: '/medical/disease/diseaseList',
        method: 'get'
    })
}